namespace Cos.Core.NHibernate.Mapping
{
    #region Usings

    using FluentNHibernate.Mapping;

    #endregion

    public class ForumPostMap : ClassMap<ForumPostDataModel>
    {
        #region Constructors and Destructors

        public ForumPostMap()
        {
            this.Table("ForumPost");
            this.LazyLoad();
            this.Id(x => x.Id).GeneratedBy.Native().Column("ID");
            this.Map(x => x.ForumTopicId).Column("TopicID");
            this.Map(x => x.CreationDate).Not.Nullable().Column("CreationDate");
            this.Map(x => x.LastModificationDate).Column("LastModificationDate");
            this.Map(x => x.Author).Not.Nullable().Column("Author");
            this.Map(x => x.Subject).Column("Subject");
            this.Map(x => x.Text).Column("Text");
            this.Map(x => x.IsDeleted).Not.Nullable().Column("IsDeleted");
        }

        #endregion
    }
}